package com.ssm.design.chain;

import com.ssm.design.App;
import com.ssm.design.chain.context.OrderHandleContextV3;
import com.ssm.design.common.enums.OrderTypeEnum;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

import javax.annotation.Resource;

@Slf4j
@SpringBootTest(classes = App.class)
public class OrderHandlerChainTestV4 {

    @Resource
    private OrderHandlerChainV4 chain;

    @Test
    public void testOrderChain() {

        OrderHandleContextV3 context = new OrderHandleContextV3();
        context.setTypeEnum(OrderTypeEnum.Car);
        chain.handle(context, null);
    }



}

